//这里我们对从vant中引入的组件做个集中统一管理
import {
  Icon,
  Swipe,
  SwipeItem,
  Button,
  Cell,
  NavBar,
  Sticky,
  Tab,
  Tabs,
  Loading,
  IndexBar,
  IndexAnchor,
} from "vant";
//放入数组中
let plugins = [
  Icon,
  Swipe,
  SwipeItem,
  Button,
  Cell,
  NavBar,
  Sticky,
  Tab,
  Tabs,
  Loading,
  IndexBar,
  IndexAnchor,
];
//通过forEach遍历
export default function getVant(app) {
  plugins.forEach((item) => {
    return app.use(item);
  });
}
